package com.njcb.ams.interaction;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

import com.njcb.ams.pojo.dto.AppInfoQueryRequest;
import com.njcb.ams.pojo.dto.AppInfoQueryResponse;
import com.njcb.ams.service.AppInfoService;
import com.njcb.ams.support.annotation.Interaction;
import com.njcb.ams.support.annotation.Trader;

@Service
@Lazy(false)
@Interaction
public class BusinessDemoManager {
    private static final Logger logger = LoggerFactory
	    .getLogger(BusinessDemoManager.class);
    @Autowired
    private AppInfoService appInfoService;

    @Trader(tradeCode = "DM1001", tradeName = "示例交易")
    public List<AppInfoQueryResponse> demoQuery(AppInfoQueryRequest request) {
	logger.info("示例交易");
	return appInfoService.appInfoQuery(request);
    }

}
